//
//  ZBarCardViewController.m
//  MemberProject
//
//  Created by MAC OS X on 15/4/17.
//  Copyright (c) 2015年 MAC OS X. All rights reserved.
//

#import "ZBarCardViewController.h"
#import "QRCodeGenerator.h"
@interface ZBarCardViewController ()

@end

@implementation ZBarCardViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.title = @"二维码卡片";
    // Do any additional setup after loading the view from its nib.
    [self setupView];
}
-(void)setupView
{
    ModelUser *modelUser =[UserInfoManager sharedManager].modelMser;
    if (modelUser) {
        self.titleLabel.text = modelUser.userName;
        UIImage *img =[QRCodeGenerator qrImageForString:modelUser.voluteerId imageSize:self.zbarImageView.height];
        [self.zbarImageView setImage:img];
    }
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
